<?php
    session_start();
    require_once '../includes/runtime/lib/Propel.php';
    Propel::init("../includes/build/conf/easylib-conf.php");
    set_include_path("../includes/build/classes" . PATH_SEPARATOR . get_include_path());
    $abonne = TabAbonneQuery::create()->filterByEmail($_SESSION["user_login"])->findOne();
    $isAbonne=  TabLicenceQuery::create()->filterByFkAbonne($abonne->getIdAbonne())->findOne();
    $abo = TabAbonnementQuery::create()->filterByIdAbonnement($isAbonne->getFkAbonnement())->findOne();
    echo $abo->toJSON();
?>